/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ads.similar;

import java.util.Comparator;

/**
 *
 * @author frama_000
 */
public class WordComperator implements Comparator<Word> {

    @Override
    public int compare(Word t, Word t1) {
        if (t.getPriority() < t1.getPriority()) {
            return -1;
        } else if (t.getPriority() > t1.getPriority()) {
            return 1;
        } else {
            return 0;
        }
    }
}
